package com.controller.jump;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/jump")
public class JumpController {

    @RequestMapping("/a1")
    public String a1() {

        return "forward:a2";
        // return "forward:/jump/a2";
    }


    @RequestMapping("/a2")
    public String a2() {
        return "index";
    }

    @RequestMapping("/a3")
    public String a3() {
        return "redirect:a4";
    }


    @RequestMapping("/a4")
    public String a4() {
        return "index";
    }
}
